﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TGVManagement.Models
{
  /// <summary>
  /// Class Data base
  /// </summary>
  public class DataBase
  {
    private static DataContextDataContext dataContext;
    /// <summary>
    /// create data context
    /// </summary>
    /// <returns></returns>
    public static DataContextDataContext GetDataContext()
    {
      if (dataContext == null)
      {
        dataContext = new DataContextDataContext();
      }
      return dataContext;
    }
  }
}